<template>
    <layout-default name="collect" :loaded="true">
        <div class="collect-tab" slot="header">
            <div class="t-item t-item-active">
                <span>文章</span>
            </div>
            <div class="t-item">
                <span>文章</span>
            </div>
        </div>
        <div class="collect-view">
            <div class="v-cards">
                <div class="c-item">
                    <div class="i-cover">
                        <img src="//cdn.kyeteo.cn/FsKYy1cGVXq0i_TNSqcajYJV5yZV" alt="">
                    </div>
                    <div class="i-info">
                        <div class="info-title">
                            <span>[玩转Nginx]Nginx开启SSL</span>
                        </div>
                        <div class="info-author">
                            <span>kyeteo</span>
                        </div>
                        <div class="info-do">
                            <div class="d-item">
                                <span>152</span>
                                <span>收藏</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </layout-default>
</template>

<style lang="less">
    .collect {
        .collect-tab {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            display: flex;
            justify-content: center;
            background: white;
            z-index: 1000;

            .t-item {
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 160px;
                height: 100px;
                color: #71777c;

                &-active {
                    span {
                        color: #007fff;
                    }

                    &::after {
                        position: absolute;
                        content: '';
                        bottom: 0;
                        left: 0;
                        width: 100%;
                        height: 0;
                        border-bottom: 5px solid #007fff;
                    }
                }
            }
        }

        .collect-view {
            padding-top: 100px;

            .v-cards {
                padding: 20px 0;

                .c-item {
                    display: flex;
                    padding: 30px;
                    background: white;

                    .i-cover {
                        width: 136px;
                        height: 188px;

                        img {
                            width: 100%;
                            height: 100%;
                        }
                    }

                    .i-info {
                        padding: 30px;

                        .info-title {
                            font-size: 34px;
                            font-weight: 600;
                        }

                        .info-author {
                            padding: 10px 0;
                        }

                        .info-do {
                            display: flex;
                            align-items: center;

                            .d-item {
                                display: flex;
                                align-items: center;
                                color: #71777c;
                            }
                        }
                    }
                }
            }
        }
    }
</style>